#include <string.h>
#include <array>
#include <iostream>
#include <string>
#include <sstream>
#include <clocale>

#pragma once

using namespace std;


class ip
{
	

public:

	int ip_nr;
	int uppkoppl;

	ip()
	{
	}

	
	void Write(){
		cout << Ipnr[0] << "." <<Ipnr[1] << "." << Ipnr[2] << "." << Ipnr[3] << endl;
	
	}
	
	friend ostream & operator << (ostream &out, const ip &a)
	{
		
		out << a.Ipnr[0] << ".";
		out << a.Ipnr[1] << ".";
		out << a.Ipnr[2] << ".";
		out << a.Ipnr[3];
		
		return out;
	}
	friend istream & operator >> (istream &in, ip &a)
	{
	
		/*int s;

		in >> skipws >> a.Ipnr[0]; //int
		getline(in, s, '.');

		in >> a.Ipnr[1]; //int
		getline(in, s, '.'); 
		
		in >> a.Ipnr[2]; //int
		getline(in, s, '.');

		in >> a.Ipnr[3]; //int
		getline(in, s, ' ');

		return in;*/
	}
	~ip()
	{
	}

	//string GetIpnr(){ return s; }
	//void SetIpnr(string s){ this->s = s; }




};

